﻿@model TrainingManagement.web.Models.ViewModels.EmployeeCreateViewModel

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>EmployeeCreateViewModel</legend>
        
        <div>
            @Html.LabelFor(a => a.UserName) 
            @Html.EditorFor(a => a.UserName)
        </div>
        <div>
            @Html.LabelFor(a => a.Password) 
            @Html.EditorFor(a => a.Password)
        </div>
        <div>
            @Html.LabelFor(a => a.FirstName) 
            @Html.EditorFor(a => a.FirstName)
        </div>
        <div>
            @Html.LabelFor(a => a.LastName)
            @Html.EditorFor(a => a.LastName)
        </div>
        <div>
            @Html.LabelFor(a => a.Email)
            @Html.EditorFor(a => a.Email)
        </div>
        <div>
            @Html.LabelFor(a => a.SmsNumber)
            @Html.EditorFor(a => a.SmsNumber)
        </div>
        <div>
            @Html.LabelFor(a => a.ReportsTo)
            @Html.DropDownListFor(x => x.EmployeeId, Model.ReportsTo)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
